/*
 * Rule.java
 *
 * Created on June 23, 2006, 8:32 PM
 *
 */

package galronnlp.pcfg.grammar;

/**
 * Interface for probabilistic context free grammar rules
 *
 * @author Daniel A. Galron
 */
public interface Rule extends galronnlp.cfg.grammar.Rule {
    /**
     * The probability of this production. Must have range 0 <= p <= 1
     *
     * @return the probability of this production
     */
    public double prob();
    
    /**
     * The log of the probability of this production.
     */
    public double logProb();
}
